<!DOCTYPE html>
<html lang="en">
  <head>
    <title>RequestError Structure Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset="utf-8">
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>

    <a name="//apple_ref/swift/Struct/RequestError" class="dashAnchor"></a>

    <a title="RequestError Structure Reference"></a>

    <header class="header">
      <p class="header-col header-col--primary">
        <a class="header-link" href="../index.html">
          KituraContracts 1.2.200 Docs
        </a>
         (99% documented)
      </p>
    
      <p class="header-col--secondary">
        <form role="search" action="../search.json">
          <input type="text" placeholder="Search documentation" data-typeahead>
        </form>
      </p>
    
        <p class="header-col header-col--secondary">
          <a class="header-link" href="https://github.com/Kitura/KituraContracts/">
            <img class="header-icon" src="../img/gh.png"/>
            View on GitHub
          </a>
        </p>
    
    </header>

    <p class="breadcrumbs">
      <a class="breadcrumb" href="../index.html">KituraContracts Reference</a>
      <img class="carat" src="../img/carat.png" />
      RequestError Structure Reference
    </p>

    <div class="content-wrapper">
      <nav class="navigation">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/Coder.html">Coder</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/QueryDecoder.html">QueryDecoder</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/QueryEncoder.html">QueryEncoder</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/IdentifierError.html">IdentifierError</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/Operator.html">Operator</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/Order.html">Order</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/QueryParamsError.html">QueryParamsError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Bool.html">Bool</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Double.html">Double</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Float.html">Float</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Int.html">Int</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Int16.html">Int16</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Int32.html">Int32</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Int64.html">Int64</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/Int8.html">Int8</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions.html#/s:10Foundation11JSONDecoderC">JSONDecoder</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions.html#/s:10Foundation11JSONEncoderC">JSONEncoder</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UInt.html">UInt</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UInt16.html">UInt16</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UInt32.html">UInt32</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UInt64.html">UInt64</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UInt8.html">UInt8</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/UUID.html">UUID</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/BodyDecoder.html">BodyDecoder</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/BodyEncoder.html">BodyEncoder</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/Identifier.html">Identifier</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/Operation.html">Operation</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/QueryParams.html">QueryParams</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/BodyFormat.html">BodyFormat</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/ExclusiveRange.html">ExclusiveRange</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/GreaterThan.html">GreaterThan</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/GreaterThanOrEqual.html">GreaterThanOrEqual</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InclusiveRange.html">InclusiveRange</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/LowerThan.html">LowerThan</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/LowerThanOrEqual.html">LowerThanOrEqual</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/Ordering.html">Ordering</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/Pagination.html">Pagination</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/RequestError.html">RequestError</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/RequestError/ErrorBody.html">– ErrorBody</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/UnsupportedBodyFormatError.html">UnsupportedBodyFormatError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts19CodableArrayClosurea">CodableArrayClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts25CodableArrayResultClosurea">CodableArrayResultClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts14CodableClosurea">CodableClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts24CodableIdentifierClosurea">CodableIdentifierClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts20CodableResultClosurea">CodableResultClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts29IdentifierCodableArrayClosurea">IdentifierCodableArrayClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts35IdentifierCodableArrayResultClosurea">IdentifierCodableArrayResultClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts24IdentifierCodableClosurea">IdentifierCodableClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts30IdentifierCodableResultClosurea">IdentifierCodableResultClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts27IdentifierNonCodableClosurea">IdentifierNonCodableClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts30IdentifierSimpleCodableClosurea">IdentifierSimpleCodableClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts17NonCodableClosurea">NonCodableClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts13ResultClosurea">ResultClosure</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:15KituraContracts20SimpleCodableClosurea">SimpleCodableClosure</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">

        <section class="section">
          <div class="section-content top-matter">
            <h1>RequestError</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">RequestError</span> <span class="p">:</span> <span class="kt">RawRepresentable</span><span class="p">,</span> <span class="kt">Equatable</span><span class="p">,</span> <span class="kt">Hashable</span><span class="p">,</span> <span class="kt">Comparable</span><span class="p">,</span> <span class="kt">Error</span><span class="p">,</span> <span class="kt">CustomStringConvertible</span></code></pre>

                </div>
              </div>
            <p>An error representing a failed request.
This definition is intended to be used by both the client side (e.g. KituraKit)
and server side (e.g. Kitura) of the request (typically a HTTP REST request).</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, the <code>RequestError</code> is used in a Kitura server Codable route handler to
indicate the request has failed because the requested record was not found.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
    <span class="o">...</span>
    <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="kt">RequestError</span><span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
    <span class="o">...</span>
<span class="p">}</span>
</code></pre>

          </div>
        </section>

        <section class="section">
          <div class="section-content">
            <div class="task-group">
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8RawValuea"></a>
                    <a name="//apple_ref/swift/Alias/RawValue" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8RawValuea">RawValue</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A typealias representing the type of error that has occurred.
The range of error codes from 100 up to 599 are reserved for HTTP status codes.
Custom error codes may be used and must not conflict with this range.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">RawValue</span> <span class="o">=</span> <span class="kt">Int</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV0D4BodyO"></a>
                    <a name="//apple_ref/swift/Enum/ErrorBody" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV0D4BodyO">ErrorBody</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Representation of the error body.
May be a type-erased Codable object or a Data (in a particular format).</p>

                        <a href="../Structs/RequestError/ErrorBody.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ErrorBody</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Creating%20a%20RequestError%20from%20a%20numeric%20code"></a>
                <a name="//apple_ref/swift/Section/Creating a RequestError from a numeric code" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Creating%20a%20RequestError%20from%20a%20numeric%20code"></a>
                  <h3 class="section-name"><p>Creating a RequestError from a numeric code</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8rawValueACSi_tcfc"></a>
                    <a name="//apple_ref/swift/Method/init(rawValue:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8rawValueACSi_tcfc">init(rawValue:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates an error representing the given error code.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">rawValue</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>rawValue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An Int indicating an error code representing the type of error that has occurred.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8rawValue6reasonACSi_SStcfc"></a>
                    <a name="//apple_ref/swift/Method/init(rawValue:reason:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8rawValue6reasonACSi_SStcfc">init(rawValue:<wbr>reason:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates an error representing the given error code and reason string.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">rawValue</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">reason</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>rawValue</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An Int indicating an error code representing the type of error that has occurred.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>reason</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A human-readable description of the error code.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV_4bodyA2C_xtcSeRzSERzlufc"></a>
                    <a name="//apple_ref/swift/Method/init(_:body:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV_4bodyA2C_xtcSeRzSERzlufc">init(_:<wbr>body:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates an error representing the given base error, with a custom
response body given as a Codable.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">init</span><span class="o">&lt;</span><span class="kt">Body</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">base</span><span class="p">:</span> <span class="kt">RequestError</span><span class="p">,</span> <span class="nv">body</span><span class="p">:</span> <span class="kt">Body</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Body</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">Body</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>base</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A <code>RequestError</code> object.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>body</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A representation of the error body - an object representing further details of the failure.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV_8bodyData6formatA2C_10Foundation0F0VAA10BodyFormatVtKcfc"></a>
                    <a name="//apple_ref/swift/Method/init(_:bodyData:format:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV_8bodyData6formatA2C_10Foundation0F0VAA10BodyFormatVtKcfc">init(_:<wbr>bodyData:<wbr>format:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates an error respresenting the given base error, with a custom
response body given as Data and a BodyFormat.</p>
<div class="aside aside-throws">
    <p class="aside-title">Throws</p>
    An <code><a href="../Structs/UnsupportedBodyFormatError.html">UnsupportedBodyFormatError</a></code> if the provided <code><a href="../Structs/BodyFormat.html">BodyFormat</a></code>
     is not supported.

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="n">_</span> <span class="nv">base</span><span class="p">:</span> <span class="kt">RequestError</span><span class="p">,</span> <span class="nv">bodyData</span><span class="p">:</span> <span class="kt">Data</span><span class="p">,</span> <span class="nv">format</span><span class="p">:</span> <span class="kt"><a href="../Structs/BodyFormat.html">BodyFormat</a></span><span class="p">)</span> <span class="k">throws</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>base</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A <code>RequestError</code> object.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>bodyData</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A <code>Data</code> object.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>format</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A <code><a href="../Structs/BodyFormat.html">BodyFormat</a></code> object used to check whether it is legal JSON.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Accessing%20information%20about%20the%20error"></a>
                <a name="//apple_ref/swift/Section/Accessing information about the error" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Accessing%20information%20about%20the%20error"></a>
                  <h3 class="section-name"><p>Accessing information about the error</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8rawValueSivp"></a>
                    <a name="//apple_ref/swift/Property/rawValue" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8rawValueSivp">rawValue</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>An error code representing the type of error that has occurred.
The range of error codes from 100 up to 599 are reserved for HTTP status codes.
Custom error codes may be used and must not conflict with this range.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">rawValue</span><span class="p">:</span> <span class="kt">Int</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV6reasonSSvp"></a>
                    <a name="//apple_ref/swift/Property/reason" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV6reasonSSvp">reason</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A human-readable description of the error code.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">reason</span><span class="p">:</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV4bodyAC0D4BodyOSgvp"></a>
                    <a name="//apple_ref/swift/Property/body" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV4bodyAC0D4BodyOSgvp">body</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Representation of the error body - an object representing further
details of the failure.</p>

<p>The value may be:</p>

<ul>
<li><code>nil</code> if there is no body</li>
<li>a (type-erased) Codable object if the error was initialized with <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_4bodyA2C_xtcSeRzSERzlufc">init(_:body:)</a></code></li>
<li>bytes of data and a signifier of the format in which they are stored (eg: JSON)
if the error was initialized with <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_8bodyData6formatA2C_10Foundation0F0VAA10BodyFormatVtKcfc">init(_:bodyData:format:)</a></code></li>
</ul>
<h3 id='usage-example' class='heading'>Usage example:</h3>
<pre class="highlight swift"><code><span class="k">if</span> <span class="k">let</span> <span class="nv">errorBody</span> <span class="o">=</span> <span class="n">error</span><span class="o">.</span><span class="n">body</span> <span class="p">{</span>
    <span class="k">switch</span> <span class="n">error</span><span class="o">.</span><span class="n">body</span> <span class="p">{</span>
       <span class="k">case</span> <span class="kd">let</span> <span class="o">.</span><span class="nf">codable</span><span class="p">(</span><span class="n">body</span><span class="p">):</span> <span class="o">...</span> <span class="c1">// body is Codable</span>
       <span class="k">case</span> <span class="kd">let</span> <span class="o">.</span><span class="nf">data</span><span class="p">(</span><span class="n">bytes</span><span class="p">,</span> <span class="n">format</span><span class="p">):</span> <span class="o">...</span> <span class="c1">// bytes is Data, format is BodyFormat</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<div class="aside aside-note">
    <p class="aside-title">Note</p>
    If you need a Codable representation and the body is data, you
    can call the <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV6bodyAsyxSgxmSeRzSERzlF">bodyAs(_:)</a></code> function to get the converted value.

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">body</span><span class="p">:</span> <span class="kt"><a href="../Structs/RequestError/ErrorBody.html">ErrorBody</a></span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV10encodeBodyy10Foundation4DataVSgAA0F6FormatVKF"></a>
                    <a name="//apple_ref/swift/Method/encodeBody(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV10encodeBodyy10Foundation4DataVSgAA0F6FormatVKF">encodeBody(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the Codable error body encoded into bytes in a given format (eg: JSON).</p>

<p>This function should be used if the RequestError was created using
<code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_4bodyA2C_xtcSeRzSERzlufc">init(_:body:)</a></code>, otherwise it will return <code>nil</code>.</p>
<div class="aside aside-note">
    <p class="aside-title">Note</p>
    This function is primarily intended for use by the Kitura Router so
    that it can encode and send a custom error body returned from
    a codable route.

</div>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">do</span> <span class="p">{</span>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">errorBodyData</span> <span class="o">=</span> <span class="k">try</span> <span class="n">error</span><span class="o">.</span><span class="nf">encodeBody</span><span class="p">(</span><span class="o">.</span><span class="n">json</span><span class="p">)</span> <span class="p">{</span>
        <span class="o">...</span>
    <span class="p">}</span>
<span class="p">}</span> <span class="k">catch</span> <span class="p">{</span>
    <span class="c1">// Handle the failure to encode</span>
<span class="p">}</span>
</code></pre>
<div class="aside aside-throws">
    <p class="aside-title">Throws</p>
    An <code>EncodingError</code> if the encoding fails.

</div><div class="aside aside-throws">
    <p class="aside-title">Throws</p>
    An <code><a href="../Structs/UnsupportedBodyFormatError.html">UnsupportedBodyFormatError</a></code> if the provided <code><a href="../Structs/BodyFormat.html">BodyFormat</a></code>
     is not supported.

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">encodeBody</span><span class="p">(</span><span class="n">_</span> <span class="nv">format</span><span class="p">:</span> <span class="kt"><a href="../Structs/BodyFormat.html">BodyFormat</a></span><span class="p">)</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">Data</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>format</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Describes the format that should be used
        (for example: <code><a href="../Structs/BodyFormat.html#/s:15KituraContracts10BodyFormatV4jsonACvpZ">BodyFormat.json</a></code>).</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The <code>Data</code> object or <code>nil</code> if there is no body, or if the
      error was not initialized with <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_4bodyA2C_xtcSeRzSERzlufc">init(_:body:)</a></code>.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV10decodeBodyyxSgxmKSeRzSERzlF"></a>
                    <a name="//apple_ref/swift/Method/decodeBody(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV10decodeBodyyxSgxmKSeRzSERzlF">decodeBody(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the Data error body as the requested <code>Codable</code> type.</p>

<p>This function should be used if the RequestError was created using
<code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_8bodyData6formatA2C_10Foundation0F0VAA10BodyFormatVtKcfc">init(_:bodyData:format:)</a></code>, otherwise it will return <code>nil</code>.</p>

<p>This function throws; you can use <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV6bodyAsyxSgxmSeRzSERzlF">bodyAs(_:)</a></code> instead if you want
to ignore DecodingErrors.</p>
<div class="aside aside-note">
    <p class="aside-title">Note</p>
    This function is primarily intended for use by users of KituraKit
    or similar client-side code that needs to convert a custom error
    response from <code>Data</code> to a <code>Codable</code> type.

</div>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">do</span> <span class="p">{</span>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">errorBody</span> <span class="o">=</span> <span class="k">try</span> <span class="n">error</span><span class="o">.</span><span class="nf">decodeBody</span><span class="p">(</span><span class="kt">MyCodableType</span><span class="o">.</span><span class="k">self</span><span class="p">)</span> <span class="p">{</span>
        <span class="o">...</span>
    <span class="p">}</span>
<span class="p">}</span> <span class="k">catch</span> <span class="p">{</span>
    <span class="c1">// Handle failure to decode</span>
<span class="p">}</span>
</code></pre>
<div class="aside aside-throws">
    <p class="aside-title">Throws</p>
    A <code>DecodingError</code> if decoding fails.

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">decodeBody</span><span class="o">&lt;</span><span class="kt">Body</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">type</span><span class="p">:</span> <span class="kt">Body</span><span class="o">.</span><span class="k">Type</span><span class="p">)</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">Body</span><span class="p">?</span> <span class="k">where</span> <span class="kt">Body</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">Body</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>type</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The type of the value to decode from the body data
        (for example: <code>MyCodableType.self</code>).</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The <code>Codable</code> object or <code>nil</code> if there is no body or if the
      error was not initialized with <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_8bodyData6formatA2C_10Foundation0F0VAA10BodyFormatVtKcfc">init(_:bodyData:format:)</a></code>.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV6bodyAsyxSgxmSeRzSERzlF"></a>
                    <a name="//apple_ref/swift/Method/bodyAs(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV6bodyAsyxSgxmSeRzSERzlF">bodyAs(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the Data error body as the requested <code>Codable</code> type.</p>

<p>This function should be used if the RequestError was created using
<code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_8bodyData6formatA2C_10Foundation0F0VAA10BodyFormatVtKcfc">init(_:bodyData:format:)</a></code>, otherwise it will return <code>nil</code>.</p>

<p>This function ignores DecodingErrors, and returns <code>nil</code> if decoding
fails. If you want DecodingErrors to be thrown, use <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV10decodeBodyyxSgxmKSeRzSERzlF">decodeBody(_:)</a></code>
instead.</p>
<div class="aside aside-note">
    <p class="aside-title">Note</p>
    This function is primarily intended for use by users of KituraKit
    or similar client-side code that needs to convert a custom error
    response from <code>Data</code> to a <code>Codable</code> type.

</div>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">if</span> <span class="k">let</span> <span class="nv">errorBody</span> <span class="o">=</span> <span class="n">error</span><span class="o">.</span><span class="nf">bodyAs</span><span class="p">(</span><span class="kt">MyCodableType</span><span class="o">.</span><span class="k">self</span><span class="p">)</span> <span class="p">{</span>
    <span class="o">...</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">bodyAs</span><span class="o">&lt;</span><span class="kt">Body</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">type</span><span class="p">:</span> <span class="kt">Body</span><span class="o">.</span><span class="k">Type</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Body</span><span class="p">?</span> <span class="k">where</span> <span class="kt">Body</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">Body</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>type</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The type of the value to decode from the body data
        (for example: <code>MyCodableType.self</code>).</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The <code>Codable</code> object or <code>nil</code> if there is no body, or if the
      error was not initialized with <code><a href="../Structs/RequestError.html#/s:15KituraContracts12RequestErrorV_8bodyData6formatA2C_10Foundation0F0VAA10BodyFormatVtKcfc">init(_:bodyData:format:)</a></code>, or
      if decoding fails.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Comparing%20RequestErrors"></a>
                <a name="//apple_ref/swift/Section/Comparing RequestErrors" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Comparing%20RequestErrors"></a>
                  <h3 class="section-name"><p>Comparing RequestErrors</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV1loiySbAC_ACtFZ"></a>
                    <a name="//apple_ref/swift/Method/&lt;(_:_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV1loiySbAC_ACtFZ"><(_:<wbr>_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="o">&lt;</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt">RequestError</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt">RequestError</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV2eeoiySbAC_ACtFZ"></a>
                    <a name="//apple_ref/swift/Method/==(_:_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV2eeoiySbAC_ACtFZ">==(_:<wbr>_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Indicates whether two URLs are the same.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="o">==</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt">RequestError</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt">RequestError</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Describing%20a%20RequestError"></a>
                <a name="//apple_ref/swift/Section/Describing a RequestError" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Describing%20a%20RequestError"></a>
                  <h3 class="section-name"><p>Describing a RequestError</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV11descriptionSSvp"></a>
                    <a name="//apple_ref/swift/Property/description" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV11descriptionSSvp">description</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A textual description of the RequestError instance containing the error code and reason.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV9hashValueSivp"></a>
                    <a name="//apple_ref/swift/Property/hashValue" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV9hashValueSivp">hashValue</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The computed hash value for the RequestError instance.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">hashValue</span><span class="p">:</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8httpCodeSivp"></a>
                    <a name="//apple_ref/swift/Property/httpCode" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8httpCodeSivp">httpCode</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The HTTP status code for the error.
This value should be a valid HTTP status code if inside the range 100 to 599,
however, it may take a value outside that range when representing other types
of error.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">httpCode</span><span class="p">:</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8httpCodeACSi_tcfc"></a>
                    <a name="//apple_ref/swift/Method/init(httpCode:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8httpCodeACSi_tcfc">init(httpCode:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates an error representing a HTTP status code.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">httpCode</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>httpCode</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A standard HTTP status code.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Accessing%20constants%20representing%20HTTP%20status%20codes"></a>
                <a name="//apple_ref/swift/Section/Accessing constants representing HTTP status codes" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Accessing%20constants%20representing%20HTTP%20status%20codes"></a>
                  <h3 class="section-name"><p>Accessing constants representing HTTP status codes</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8continueACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/continue" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8continueACvpZ">continue</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 100 - Continue</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">let</span> <span class="p">`</span><span class="nv">continue</span><span class="p">`:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV18switchingProtocolsACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/switchingProtocols" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV18switchingProtocolsACvpZ">switchingProtocols</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 101 - Switching Protocols</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">switchingProtocols</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV2okACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/ok" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV2okACvpZ">ok</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 200 - OK</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">ok</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV7createdACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/created" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV7createdACvpZ">created</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 201 - Created</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">created</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8acceptedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/accepted" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8acceptedACvpZ">accepted</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 202 - Accepted</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">accepted</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV27nonAuthoritativeInformationACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/nonAuthoritativeInformation" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV27nonAuthoritativeInformationACvpZ">nonAuthoritativeInformation</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 203 - Non Authoritative Information</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">nonAuthoritativeInformation</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV9noContentACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/noContent" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV9noContentACvpZ">noContent</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 204 - No Content</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">noContent</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV12resetContentACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/resetContent" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV12resetContentACvpZ">resetContent</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 205 - Reset Content</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">resetContent</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV14partialContentACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/partialContent" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV14partialContentACvpZ">partialContent</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 206 - Partial Content</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">partialContent</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV11multiStatusACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/multiStatus" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV11multiStatusACvpZ">multiStatus</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 207 - Multi Status</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">multiStatus</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV15alreadyReportedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/alreadyReported" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV15alreadyReportedACvpZ">alreadyReported</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 208 - Already Reported</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">alreadyReported</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV6imUsedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/imUsed" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV6imUsedACvpZ">imUsed</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 226 - IM Used</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">imUsed</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV15multipleChoicesACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/multipleChoices" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV15multipleChoicesACvpZ">multipleChoices</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 300 - Multiple Choices</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">multipleChoices</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV16movedPermanentlyACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/movedPermanently" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV16movedPermanentlyACvpZ">movedPermanently</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 301 - Moved Permanently</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">movedPermanently</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV5foundACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/found" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV5foundACvpZ">found</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 302 - Found</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">found</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8seeOtherACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/seeOther" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8seeOtherACvpZ">seeOther</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 303 - See Other</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">seeOther</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV11notModifiedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/notModified" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV11notModifiedACvpZ">notModified</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 304 - Not Modified</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">notModified</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8useProxyACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/useProxy" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8useProxyACvpZ">useProxy</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 305 - Use Proxy</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">useProxy</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV17temporaryRedirectACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/temporaryRedirect" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV17temporaryRedirectACvpZ">temporaryRedirect</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 307 - Temporary Redirect</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">temporaryRedirect</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV17permanentRedirectACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/permanentRedirect" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV17permanentRedirectACvpZ">permanentRedirect</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 308 - Permanent Redirect</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">permanentRedirect</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV03badC0ACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/badRequest" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV03badC0ACvpZ">badRequest</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 400 - Bad Request</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">badRequest</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV12unauthorizedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/unauthorized" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV12unauthorizedACvpZ">unauthorized</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 401 - Unauthorized</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">unauthorized</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV15paymentRequiredACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/paymentRequired" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV15paymentRequiredACvpZ">paymentRequired</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 402 - Payment Required</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">paymentRequired</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV9forbiddenACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/forbidden" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV9forbiddenACvpZ">forbidden</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 403 - Forbidden</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">forbidden</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8notFoundACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/notFound" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8notFoundACvpZ">notFound</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 404 - Not Found</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">notFound</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV16methodNotAllowedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/methodNotAllowed" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV16methodNotAllowedACvpZ">methodNotAllowed</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 405 - Method Not Allowed</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">methodNotAllowed</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV13notAcceptableACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/notAcceptable" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV13notAcceptableACvpZ">notAcceptable</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 406 - Not Acceptable</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">notAcceptable</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV27proxyAuthenticationRequiredACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/proxyAuthenticationRequired" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV27proxyAuthenticationRequiredACvpZ">proxyAuthenticationRequired</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 407 - Proxy Authentication Required</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">proxyAuthenticationRequired</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV14requestTimeoutACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/requestTimeout" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV14requestTimeoutACvpZ">requestTimeout</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 408 - Request Timeout</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">requestTimeout</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV8conflictACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/conflict" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV8conflictACvpZ">conflict</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 409 - Conflict</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">conflict</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV4goneACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/gone" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV4goneACvpZ">gone</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 410 - Gone</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">gone</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV14lengthRequiredACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/lengthRequired" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV14lengthRequiredACvpZ">lengthRequired</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 411 - Length Required</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">lengthRequired</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV18preconditionFailedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/preconditionFailed" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV18preconditionFailedACvpZ">preconditionFailed</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 412 - Precondition Failed</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">preconditionFailed</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV15payloadTooLargeACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/payloadTooLarge" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV15payloadTooLargeACvpZ">payloadTooLarge</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 413 - Payload Too Large</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">payloadTooLarge</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV10uriTooLongACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/uriTooLong" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV10uriTooLongACvpZ">uriTooLong</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 414 - URI Too Long</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">uriTooLong</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV20unsupportedMediaTypeACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/unsupportedMediaType" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV20unsupportedMediaTypeACvpZ">unsupportedMediaType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 415 - Unsupported Media Type</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">unsupportedMediaType</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV19rangeNotSatisfiableACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/rangeNotSatisfiable" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV19rangeNotSatisfiableACvpZ">rangeNotSatisfiable</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 416 - Range Not Satisfiable</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">rangeNotSatisfiable</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV17expectationFailedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/expectationFailed" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV17expectationFailedACvpZ">expectationFailed</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 417 - Expectation Failed</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">expectationFailed</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV011misdirectedC0ACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/misdirectedRequest" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV011misdirectedC0ACvpZ">misdirectedRequest</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 421 - Misdirected Request</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">misdirectedRequest</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV19unprocessableEntityACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/unprocessableEntity" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV19unprocessableEntityACvpZ">unprocessableEntity</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 422 - Unprocessable Entity</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">unprocessableEntity</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV6lockedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/locked" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV6lockedACvpZ">locked</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 423 - Locked</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">locked</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV16failedDependencyACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/failedDependency" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV16failedDependencyACvpZ">failedDependency</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 424 - Failed Dependency</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">failedDependency</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV15upgradeRequiredACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/upgradeRequired" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV15upgradeRequiredACvpZ">upgradeRequired</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 426 - Upgrade Required</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">upgradeRequired</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV20preconditionRequiredACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/preconditionRequired" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV20preconditionRequiredACvpZ">preconditionRequired</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 428 - Precondition Required</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">preconditionRequired</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV15tooManyRequestsACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/tooManyRequests" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV15tooManyRequestsACvpZ">tooManyRequests</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 429 - Too Many Requests</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">tooManyRequests</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV27requestHeaderFieldsTooLargeACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/requestHeaderFieldsTooLarge" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV27requestHeaderFieldsTooLargeACvpZ">requestHeaderFieldsTooLarge</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 431 - Request Header Fields Too Large</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">requestHeaderFieldsTooLarge</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV26unavailableForLegalReasonsACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/unavailableForLegalReasons" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV26unavailableForLegalReasonsACvpZ">unavailableForLegalReasons</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 451 - Unavailable For Legal Reasons</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">unavailableForLegalReasons</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV014internalServerD0ACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/internalServerError" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV014internalServerD0ACvpZ">internalServerError</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 500 - Internal Server Error</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">internalServerError</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV14notImplementedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/notImplemented" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV14notImplementedACvpZ">notImplemented</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 501 - Not Implemented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">notImplemented</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV10badGatewayACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/badGateway" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV10badGatewayACvpZ">badGateway</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 502 - Bad Gateway</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">badGateway</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV18serviceUnavailableACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/serviceUnavailable" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV18serviceUnavailableACvpZ">serviceUnavailable</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 503 - Service Unavailable</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">serviceUnavailable</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV14gatewayTimeoutACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/gatewayTimeout" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV14gatewayTimeoutACvpZ">gatewayTimeout</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 504 - Gateway Timeout</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">gatewayTimeout</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV23httpVersionNotSupportedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/httpVersionNotSupported" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV23httpVersionNotSupportedACvpZ">httpVersionNotSupported</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 505 - HTTP Version Not Supported</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">httpVersionNotSupported</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV21variantAlsoNegotiatesACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/variantAlsoNegotiates" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV21variantAlsoNegotiatesACvpZ">variantAlsoNegotiates</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 506 - Variant Also Negotiates</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">variantAlsoNegotiates</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV19insufficientStorageACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/insufficientStorage" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV19insufficientStorageACvpZ">insufficientStorage</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 507 - Insufficient Storage</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">insufficientStorage</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV12loopDetectedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/loopDetected" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV12loopDetectedACvpZ">loopDetected</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 508 - Loop Detected</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">loopDetected</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV11notExtendedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/notExtended" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV11notExtendedACvpZ">notExtended</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 510 - Not Extended</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">notExtended</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:15KituraContracts12RequestErrorV29networkAuthenticationRequiredACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/networkAuthenticationRequired" class="dashAnchor"></a>
                    <a class="token" href="#/s:15KituraContracts12RequestErrorV29networkAuthenticationRequiredACvpZ">networkAuthenticationRequired</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>HTTP code 511 - Network Authentication Required</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">networkAuthenticationRequired</span><span class="p">:</span> <span class="kt">RequestError</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </section>

      </article>
    </div>
    <section class="footer">
      <p>&copy; 2020 <a class="link" href="https://github.com/Kitura/KituraContracts" target="_blank" rel="external">IBM and Kitura project authors</a>. All rights reserved. (Last updated: 2020-12-09)</p>
      <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
    </section>
  </body>
</div>
</html>
